#ifndef OPENGLITEM_H
#define OPENGLITEM_H

#include <QWidget>
#include <QQuickItem>
#include <QQuickFramebufferObject>
#include <QOpenGLFunctions_3_3_Core>
#include <QOpenGLShaderProgram>
#include <QOpenGLTexture>
#include <QQuickItem>
#include <QQuickWindow>

#include "render.h"
#include <QDebug>
#include <QTimer>

class OpenGLItem : public  QQuickItem
{
    Q_OBJECT

public:
    OpenGLItem();
    ~OpenGLItem();


    QTimer m_timer;
    Render *m_render;
public slots:
    void sync();
    void cleanup();


    void on_timeOut();
    void goAhead();
};
#endif // OPENGLITEM_H
